home *** CD-ROM | disk | FTP | other *** search
-
- Documentation for DDSGEN command
-
- Purpose: Generate DDS source specifications for S/38 physical files.
-
- Environment: Interactive or Batch.
-
-
- Program Overview:
-
- The DDS generator programs (hereafter called DDSGEN) will create DDS
- specifications for any PHYSICAL FILE on your system. (Logical and
- Device files are not supported).
-
- Uses for DDSGEN:
- 1) Replace specifications which have been accidentally erased.
- 2) Create specifications without referencing keywords (for files
- created using Field Referencing). Although the generator supports
- field referencing, it is often desirable to be able to look up the
- length and data type attributes of fields in the file source
- specifications.
- 3) Generate source for files created without source (AME).
-
- THE OBJECTS:
-
- OBJECT TYPE ATTR
-
- DDS01C *PGM CL CPP for DDSGEN command.
- DDS01CPF *PGM CL Mainline CLP for Physical File DDSGEN.
- DDS01CSRC *PGM CL Source file parameter validation CLP.
- DDS01RPF01 *PGM RPG RPG to generate file level DDS.
- DDS01RPF02 *PGM RPG RPG program to generate record level DDS.
- DDS01RPF03 *PGM RPG RPG program to generate field level DDS.
- DDS01RPF04 *PGM RPG RPG program to generate key field DDS.
- DDSGEN *CMD DDS generator command source.
-
-
- PC FILE NAME S/38 SOURCE MEMBER NAME SOURCE FILE
-
- DDSC.CLP DDS01C QCLSRC
- DDSCPF.CLP DDS01CPF QCLSRC .
- DDSCSRC.CLP DDS01CSRC QCLSRC
- DDSRPF01.RPG DDS01RPF01 QRPGSRC
- DDSRPF02.RPG DDS01RPF02 QRPGSRC DDS.
- DDSRPF03.RPG DDS01RPF03 QRPGSRC DS.
- DDSRPF04.RPG DDS01RPF04 QRPGSRC .
- DDSGEN.CMD DDSGEN QCMDSRC
- DDSGEN.DOC (ANY NAME) QTXTSRC
-
- .pa
-
- DDSGEN COMMAND AND PARAMETERS:
-
-
- Generate File DDS (DDSGEN) Prompt
- Enter the following:
- File name: FILE R
- File library: *LIBL
- Source file to receive DDS: SRCFILE P QDDSSRC
- Source file library: *FILELIBR
- Source member Name: MBR P *FILE
- REFFLD or ordinary DDS REF P NOREF
- TEXT or no text TEXT P NOTEXT
-
-
- 1) File Name: The name of the physical file.
- 2) File Library: The library for the physical file, or *LIBL.
- 3) Source File: The name of the source file which will
- receive the generated specifications.
-
- 4) Source File Library: The library where the source file is found.
-
- NOTE WELL!!! The default library for the
- source file, is the library where the physical
- file is found. OFTENTIMES THIS FILE ALREADY
- CONTAINS SOURCE FOR THE PHYSICAL FILE. DDSGEN
- will replace existing source with generated
- source. Be sure to specify a different source
- file and library name combination if you
- already have source for a physical file stored
- in QDDSSRC in the same library as the physical
- file. Or, use the MBR parameter to specify a
- different name for the source that is
- generated.
-
- 5) Source Member Name: The name of the generated source member.
- The default name is the name of the physical
- file.
-
- 6) REFFLD or ordinary DDS:
- Default is NOREF.
-
- Enter NOREF or N to eliminate the field
- referencing function.
-
- Enter REF or R to use field referencing.
-
- 7) TEXT or no text Default is NOTEXT.
-
- Enter NOTEXT or N to eliminate TEXT keyword
- generation. COLHDGs are generated for every
- field and the TEXT keyword is unnecessary for
- documenting the field.
-
- Enter TEXT or T to generate the TEXT keyword.
- .pa
-
- DDSGEN EXAMPLES:
-
-
- 1) Sample: Partial listing of P.O. header file, with referencing.
- Note the specification of a different source file name.
-
- DDSGEN FILE(OPOMST) SRCFILE(QDDSWRK.TERRY) REF(REF)
-
- A**************************************************************************
- A* * DDSGEN V 1.4 * *
- A* *
- A* FILE NAME: OPOMST *
- A* *
- A* FILE LIBRARY: COMLIB *
- A* *
- A* FILE TYPE: PHYSICAL *
- A* *
- A* FILE CREATION DATE: 11/17/83 TIME: 17.50.27 *
- A* *
- A* DDS CREATION DATE: 09/01/87 TIME: 10.56.53 *
- A* *
- A* FILE TEXT: OPEN P.O. FILE - CAP, CPO *
- A* *
- A**************************************************************************
- A* *
- A R OPOFM1
- A OPO R REFFLD(OPO.DATAFMT CANDTD.COMLIB)
- A COLHDG('P/O NUMBER')
- A OREL R REFFLD(OREL.DATAFMT CANDTD.COMLIB)
- A COLHDG('ORDER RELEASE')
- A OVEN# R REFFLD(OVEN#.DATAFMT CANDTD.COMLIB)
- A COLHDG('VENDOR NUMBER')
- A OCD1 R REFFLD(OCD1.DATAFMT CANDTD.COMLIB)
- A COLHDG('BLANKET CODE')
- A OCD2 R REFFLD(OCD2.DATAFMT CANDTD.COMLIB)
- A COLHDG('STATUS' 'CODE')
- A OCD3 R REFFLD(OCD3.DATAFMT CANDTD.COMLIB)
- A COLHDG('RECEIVING REQUIRED' 'CODE')
- A OCD4 R REFFLD(OCD4.DATAFMT CANDTD.COMLIB)
- A COLHDG('PRINT' 'OPTION')
- A OCD5 R REFFLD(OCD5.DATAFMT CANDTD.COMLIB)
- A COLHDG('CLOSED' 'CODE')
- A OCD6 R REFFLD(OCD6.DATAFMT CANDTD.COMLIB)
- A COLHDG('FUTURE' 'CODE')
- A K OPO UNSIGNED
- A K OREL UNSIGNED
- .pa
-
- DDSGEN EXAMPLES:
-
-
- 2) Sample: Partial listing of P.O. header file, WITHOUT referencing.
- Note the specification of a different source MEMBER name.
-
- DDSGEN FILE(OPOMST) MBR(OPOWRK)
-
- A**************************************************************************
- A* * DDSGEN V 1.4 * *
- A* *
- A* FILE NAME: OPOMST *
- A* *
- A* FILE LIBRARY: COMLIB *
- A* *
- A* FILE TYPE: PHYSICAL *
- A* *
- A* FILE CREATION DATE: 11/17/83 TIME: 17.50.27 *
- A* *
- A* DDS CREATION DATE: 09/01/87 TIME: 11.09.06 *
- A* *
- A* FILE TEXT: OPEN P.O. FILE - CAP, CPO *
- A* *
- A**************************************************************************
- A* *
- A R OPOFM1
- A OPO 6P 0 COLHDG('P/O NUMBER')
- A OREL 3P 0 COLHDG('ORDER RELEASE')
- A OCD1 1A COLHDG('BLANKET CODE')
- A OCD2 1A COLHDG('STATUS' 'CODE')
- A OCD3 1A COLHDG('RECEIVING REQUIRED' 'CODE')
- A OCD4 1A COLHDG('PRINT' 'OPTION')
- A OCD5 1A COLHDG('CLOSED' 'CODE')
- A OCD6 1A COLHDG('FUTURE' 'CODE')
- A K OPO UNSIGNED
- A K OREL UNSIGNED
-